/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.partaljevic.gambling.beans;

import com.partaljevic.tapestry.gambling.service.*;
import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;

/**
 *
 * @author Nemanja
 */
public class MatchesServiceBean implements MatchesService{

    private List<Match> listOfMatches;

    public MatchesServiceBean() {
        listOfMatches = new LinkedList<Match>();
    }


    public void save(Match match){
        listOfMatches.add(match);
    }

    public List<Match> retreive(){
        return listOfMatches;
    }

    @Override
    public Match retreive(Serializable id) {
        return null;
    }

    @Override
    public void update(Match match) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

}
